package com.carleasoft.mps.adu.business.role.bean.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 数据权限表
 * </p>
 *
 * @author ztm
 * @since 2021-09-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("m_authority_user_data")
@ApiModel(value="AuthorityUserData对象", description="数据权限表")
public class AuthorityUserDataEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "角色id")
    @TableField("ROLE_CODE")
    private String roleCode;

    @ApiModelProperty(value = "1-全部,2-指定组织分类,3-指定组织,4-所在组织,5-指定部门,6-所在部门")
    @TableField("DATA_TYPE")
    private Integer dataType;

    @TableField("DATA_CODE")
    private String dataCode;


}
